﻿using star_questionnair.Models;

namespace star_questionnair.DTOs;

using System;

public class ResponseDTO
{
    public int Id { get; set; }
    public int QuestionnaireId { get; set; }
    public int UserId { get; set; }
    public DateTime StartTime { get; set; }
    public DateTime? SubmittedTime { get; set; }
    public DateTime UpdatedTime { get; set; }
    public ICollection<Answer> Answers { get; set; }

    public ResponseDTO(int id, int questionnaireId, int userId, DateTime startTime, DateTime? submittedTime,
        DateTime updatedTime,ICollection<Answer> answers)
    {
        Id = id;
        QuestionnaireId = questionnaireId;
        UserId = userId;
        StartTime = startTime;
        SubmittedTime = submittedTime;
        UpdatedTime = updatedTime;
        Answers = answers;
    }
}